

<!doctype html>

<html lang="en" data-content_root="../../">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>skidl.netlist_to_skidl &#8212; SKiDL 1.2.2 documentation</title>
    <link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
    <link rel="stylesheet" type="text/css" href="../../_static/bizstyle.css?v=a66e137f" />
    
    <script src="../../_static/documentation_options.js?v=fd7cadf9"></script>
    <script src="../../_static/doctools.js?v=9a2dae69"></script>
    <script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
    <script src="../../_static/bizstyle.js"></script>
    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <!--[if lt IE 9]>
    <script src="_static/css3-mediaqueries.js"></script>
    <![endif]-->
  </head><body>
    <h1 id="site-title"><a href="../../../../"><img src="../../../../images/slim_banner.png" width="100%"></a></h1>
    
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="nav-item nav-item-0"><a href="../../index.html">SKiDL 1.2.2 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="../index.html" accesskey="U">Module code</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">skidl.netlist_to_skidl</a></li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <h1>Source code for skidl.netlist_to_skidl</h1><div class="highlight"><pre>
<span></span><span class="c1"># -*- coding: utf-8 -*-</span>

<span class="c1"># The MIT License (MIT) - Copyright (c) Dave Vandenbout.</span>

<span class="sd">&quot;&quot;&quot;</span>
<span class="sd">Convert a netlist into an equivalent SKiDL program.</span>
<span class="sd">&quot;&quot;&quot;</span>

<span class="kn">from</span> <span class="nn">__future__</span> <span class="kn">import</span> <span class="p">(</span>  <span class="c1"># isort:skip</span>
    <span class="n">absolute_import</span><span class="p">,</span>
    <span class="n">division</span><span class="p">,</span>
    <span class="n">print_function</span><span class="p">,</span>
    <span class="n">unicode_literals</span><span class="p">,</span>
<span class="p">)</span>

<span class="kn">import</span> <span class="nn">re</span>
<span class="kn">from</span> <span class="nn">builtins</span> <span class="kn">import</span> <span class="nb">int</span>
<span class="kn">from</span> <span class="nn">collections</span> <span class="kn">import</span> <span class="n">defaultdict</span>

<span class="k">try</span><span class="p">:</span>
    <span class="kn">from</span> <span class="nn">future</span> <span class="kn">import</span> <span class="n">standard_library</span>
    <span class="n">standard_library</span><span class="o">.</span><span class="n">install_aliases</span><span class="p">()</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
    <span class="k">pass</span>

<span class="kn">from</span> <span class="nn">kinparse</span> <span class="kn">import</span> <span class="n">parse_netlist</span>

<span class="kn">from</span> <span class="nn">.part</span> <span class="kn">import</span> <span class="n">TEMPLATE</span>
<span class="kn">from</span> <span class="nn">.utilities</span> <span class="kn">import</span> <span class="n">export_to_all</span>



<div class="viewcode-block" id="netlist_to_skidl">
<a class="viewcode-back" href="../../rst_output/skidl.netlist_to_skidl.html#skidl.netlist_to_skidl.netlist_to_skidl">[docs]</a>
<span class="nd">@export_to_all</span>
<span class="k">def</span> <span class="nf">netlist_to_skidl</span><span class="p">(</span><span class="n">netlist_src</span><span class="p">):</span>

    <span class="n">tab</span> <span class="o">=</span> <span class="s2">&quot; &quot;</span> <span class="o">*</span> <span class="mi">4</span>

    <span class="k">def</span> <span class="nf">legalize</span><span class="p">(</span><span class="n">name</span><span class="p">):</span>
<span class="w">        </span><span class="sd">&quot;&quot;&quot;Make a string into a legal python variable name.&quot;&quot;&quot;</span>
        <span class="k">return</span> <span class="n">re</span><span class="o">.</span><span class="n">sub</span><span class="p">(</span><span class="s2">&quot;[^a-zA-Z0-9_]&quot;</span><span class="p">,</span> <span class="s2">&quot;_&quot;</span><span class="p">,</span> <span class="n">name</span><span class="p">)</span>

    <span class="k">def</span> <span class="nf">comp_key</span><span class="p">(</span><span class="n">comp</span><span class="p">):</span>
<span class="w">        </span><span class="sd">&quot;&quot;&quot;Create an ID key from component&#39;s major characteristics.&quot;&quot;&quot;</span>
        <span class="n">chars</span> <span class="o">=</span> <span class="p">[</span><span class="n">c</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="p">[</span><span class="n">comp</span><span class="o">.</span><span class="n">lib</span><span class="p">,</span> <span class="n">comp</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="n">comp</span><span class="o">.</span><span class="n">footprint</span><span class="p">]</span> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">c</span><span class="p">)]</span>
        <span class="k">return</span> <span class="n">legalize</span><span class="p">(</span><span class="s2">&quot;_&quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">chars</span><span class="p">))</span>

    <span class="k">def</span> <span class="nf">template_comp_to_skidl</span><span class="p">(</span><span class="n">template_comp</span><span class="p">):</span>
<span class="w">        </span><span class="sd">&quot;&quot;&quot;Instantiate a component that will be used as a template.&quot;&quot;&quot;</span>
        <span class="n">ltab</span> <span class="o">=</span> <span class="n">tab</span>

        <span class="c1"># Instantiate component template.</span>
        <span class="n">name</span> <span class="o">=</span> <span class="n">comp_key</span><span class="p">(</span><span class="n">template_comp</span><span class="p">)</span>  <span class="c1"># python variable name for template.</span>
        <span class="n">lib</span> <span class="o">=</span> <span class="n">template_comp</span><span class="o">.</span><span class="n">lib</span>
        <span class="n">part</span> <span class="o">=</span> <span class="n">template_comp</span><span class="o">.</span><span class="n">name</span>
        <span class="n">tmpl</span> <span class="o">=</span> <span class="s2">&quot;</span><span class="si">{ltab}{name}</span><span class="s2"> = Part(&#39;</span><span class="si">{lib}</span><span class="s2">&#39;, &#39;</span><span class="si">{part}</span><span class="s2">&#39;, dest=TEMPLATE&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>
        <span class="n">footprint</span> <span class="o">=</span> <span class="n">template_comp</span><span class="o">.</span><span class="n">footprint</span>
        <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">footprint</span><span class="p">):</span>
            <span class="n">tmpl</span> <span class="o">+=</span> <span class="s2">&quot;, footprint=&#39;</span><span class="si">{footprint}</span><span class="s2">&#39;&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>
        <span class="n">tmpl</span> <span class="o">+=</span> <span class="s2">&quot;)</span><span class="se">\n</span><span class="s2">&quot;</span>

        <span class="c1"># Set attributes of template using the component fields.</span>
        <span class="k">for</span> <span class="n">fld</span> <span class="ow">in</span> <span class="n">template_comp</span><span class="o">.</span><span class="n">fields</span><span class="p">:</span>
            <span class="n">tmpl</span> <span class="o">+=</span> <span class="s2">&quot;</span><span class="si">{ltab}</span><span class="s2">setattr(</span><span class="si">{name}</span><span class="s2">, &#39;</span><span class="si">{fld.name}</span><span class="s2">&#39;, &#39;</span><span class="si">{fld.value}</span><span class="s2">&#39;)</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
                <span class="o">**</span><span class="nb">locals</span><span class="p">()</span>
            <span class="p">)</span>

        <span class="k">return</span> <span class="n">tmpl</span>

    <span class="k">def</span> <span class="nf">comp_to_skidl</span><span class="p">(</span><span class="n">comp</span><span class="p">,</span> <span class="n">template_comps</span><span class="p">):</span>
<span class="w">        </span><span class="sd">&quot;&quot;&quot;Instantiate components using the component templates.&quot;&quot;&quot;</span>
        <span class="n">ltab</span> <span class="o">=</span> <span class="n">tab</span>

        <span class="c1"># Use the component key to get the template that matches this component.</span>
        <span class="n">template_comp_name</span> <span class="o">=</span> <span class="n">comp_key</span><span class="p">(</span><span class="n">comp</span><span class="p">)</span>
        <span class="n">template_comp</span> <span class="o">=</span> <span class="n">template_comps</span><span class="p">[</span><span class="n">template_comp_name</span><span class="p">]</span>

        <span class="c1"># Get the fields for the template.</span>
        <span class="n">template_comp_fields</span> <span class="o">=</span> <span class="p">{</span><span class="n">fld</span><span class="o">.</span><span class="n">name</span><span class="p">:</span> <span class="n">fld</span><span class="o">.</span><span class="n">value</span> <span class="k">for</span> <span class="n">fld</span> <span class="ow">in</span> <span class="n">template_comp</span><span class="o">.</span><span class="n">fields</span><span class="p">}</span>

        <span class="c1"># Create a legal python variable for storing the instantiated component.</span>
        <span class="n">ref</span> <span class="o">=</span> <span class="n">comp</span><span class="o">.</span><span class="n">ref</span>
        <span class="n">legal_ref</span> <span class="o">=</span> <span class="n">legalize</span><span class="p">(</span><span class="n">ref</span><span class="p">)</span>

        <span class="c1"># Instantiate the component and its value (if any).</span>
        <span class="n">inst</span> <span class="o">=</span> <span class="s2">&quot;</span><span class="si">{ltab}{legal_ref}</span><span class="s2"> = </span><span class="si">{template_comp_name}</span><span class="s2">(ref=&#39;</span><span class="si">{ref}</span><span class="s2">&#39;&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>
        <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">comp</span><span class="o">.</span><span class="n">value</span><span class="p">):</span>
            <span class="n">inst</span> <span class="o">+=</span> <span class="s2">&quot;, value=&#39;</span><span class="si">{comp.value}</span><span class="s2">&#39;&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>
        <span class="n">inst</span> <span class="o">+=</span> <span class="s2">&quot;)</span><span class="se">\n</span><span class="s2">&quot;</span>

        <span class="c1"># Set the fields of the instantiated component if they differ from the values in the template.</span>
        <span class="k">for</span> <span class="n">fld</span> <span class="ow">in</span> <span class="n">comp</span><span class="o">.</span><span class="n">fields</span><span class="p">:</span>
            <span class="k">if</span> <span class="n">fld</span><span class="o">.</span><span class="n">value</span> <span class="o">!=</span> <span class="n">template_comp_fields</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">fld</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="s2">&quot;&quot;</span><span class="p">):</span>
                <span class="n">inst</span> <span class="o">+=</span> <span class="p">(</span>
                    <span class="s2">&quot;</span><span class="si">{ltab}</span><span class="s2">setattr(</span><span class="si">{legal_ref}</span><span class="s2">, &#39;</span><span class="si">{fld.name}</span><span class="s2">&#39;, &#39;</span><span class="si">{fld.value}</span><span class="s2">&#39;)</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
                        <span class="o">**</span><span class="nb">locals</span><span class="p">()</span>
                    <span class="p">)</span>
                <span class="p">)</span>

        <span class="k">return</span> <span class="n">inst</span>

    <span class="k">def</span> <span class="nf">net_to_skidl</span><span class="p">(</span><span class="n">net</span><span class="p">):</span>
<span class="w">        </span><span class="sd">&quot;&quot;&quot;Instantiate the nets between components.&quot;&quot;&quot;</span>

        <span class="c1"># Build a list of component pins attached to the net.</span>
        <span class="n">pins</span> <span class="o">=</span> <span class="p">[]</span>
        <span class="k">for</span> <span class="n">pin</span> <span class="ow">in</span> <span class="n">net</span><span class="o">.</span><span class="n">pins</span><span class="p">:</span>
            <span class="n">comp</span> <span class="o">=</span> <span class="n">legalize</span><span class="p">(</span><span class="n">pin</span><span class="o">.</span><span class="n">ref</span><span class="p">)</span>  <span class="c1"># Name of Python variable storing component.</span>
            <span class="n">pin_num</span> <span class="o">=</span> <span class="n">pin</span><span class="o">.</span><span class="n">num</span>  <span class="c1"># Pin number of component attached to net.</span>
            <span class="n">pins</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s2">&quot;</span><span class="si">{comp}</span><span class="s2">[&#39;</span><span class="si">{pin_num}</span><span class="s2">&#39;]&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">()))</span>
        <span class="n">pins</span> <span class="o">=</span> <span class="s2">&quot;, &quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">pins</span><span class="p">)</span>  <span class="c1"># String the pins into an argument list.</span>

        <span class="n">ltab</span> <span class="o">=</span> <span class="n">tab</span>

        <span class="c1"># Instantiate the net, connect the pins to it, and return it.</span>
        <span class="k">return</span> <span class="s2">&quot;</span><span class="si">{ltab}</span><span class="s2">Net(&#39;</span><span class="si">{net.name}</span><span class="s2">&#39;).connect(</span><span class="si">{pins}</span><span class="s2">)</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>

    <span class="c1"># Parse the netlist into a list of components and nets.</span>
    <span class="n">ntlst</span> <span class="o">=</span> <span class="n">parse_netlist</span><span class="p">(</span><span class="n">netlist_src</span><span class="p">)</span>

    <span class="c1"># Convert a netlist into a skidl script with the following equence of operations:</span>
    <span class="c1">#   1. Create a template for each component having a given library, part name and footprint.</span>
    <span class="c1">#   2. Instantiate each component using its matching template. Also, set any attributes</span>
    <span class="c1">#      for the component that don&#39;t match those in the template.</span>
    <span class="c1">#   3. Instantiate the nets connecting the component pins.</span>
    <span class="c1">#   4. Call the script to instantiate the complete circuit.</span>
    <span class="c1">#   5. Generate the netlist for the circuit.</span>

    <span class="c1"># Create header.</span>
    <span class="n">skidl</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="s2">&quot;# -*- coding: utf-8 -*-</span><span class="se">\n\n</span><span class="s2">&quot;</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="s2">&quot;from skidl import *</span><span class="se">\n\n\n</span><span class="s2">&quot;</span>

    <span class="c1"># Create the beginning of the circuit function.</span>
    <span class="n">circuit_name</span> <span class="o">=</span> <span class="n">legalize</span><span class="p">(</span><span class="n">ntlst</span><span class="o">.</span><span class="n">source</span><span class="p">)</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="s2">&quot;def </span><span class="si">{circuit_name}</span><span class="s2">():&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>

    <span class="c1"># Indent the contents of the circuit function.</span>
    <span class="n">ltab</span> <span class="o">=</span> <span class="n">tab</span>

    <span class="c1"># Template for divider between function sections.</span>
    <span class="n">section_div</span> <span class="o">=</span> <span class="s2">&quot;#&quot;</span> <span class="o">+</span> <span class="s2">&quot;=&quot;</span> <span class="o">*</span> <span class="mi">79</span>
    <span class="n">section_comment</span> <span class="o">=</span> <span class="p">(</span>
        <span class="s2">&quot;</span><span class="se">\n\n</span><span class="si">{ltab}{section_div}</span><span class="se">\n</span><span class="si">{ltab}</span><span class="s2"># </span><span class="si">{section_desc}</span><span class="se">\n</span><span class="si">{ltab}{section_div}</span><span class="se">\n\n</span><span class="s2">&quot;</span>
    <span class="p">)</span>

    <span class="c1"># Component template section.</span>
    <span class="n">section_desc</span> <span class="o">=</span> <span class="s2">&quot;Component templates.&quot;</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="n">section_comment</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>
    <span class="n">comp_templates</span> <span class="o">=</span> <span class="p">{</span><span class="n">comp_key</span><span class="p">(</span><span class="n">comp</span><span class="p">):</span> <span class="n">comp</span> <span class="k">for</span> <span class="n">comp</span> <span class="ow">in</span> <span class="n">ntlst</span><span class="o">.</span><span class="n">parts</span><span class="p">}</span>
    <span class="n">template_statements</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span>
        <span class="p">[</span><span class="n">template_comp_to_skidl</span><span class="p">(</span><span class="n">c</span><span class="p">)</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="nb">list</span><span class="p">(</span><span class="n">comp_templates</span><span class="o">.</span><span class="n">values</span><span class="p">())]</span>
    <span class="p">)</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">template_statements</span><span class="p">)</span>

    <span class="c1"># Component instantiation section.</span>
    <span class="n">section_desc</span> <span class="o">=</span> <span class="s2">&quot;Component instantiations.&quot;</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="n">section_comment</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>
    <span class="n">comp_inst_statements</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span>
        <span class="p">[</span><span class="n">comp_to_skidl</span><span class="p">(</span><span class="n">c</span><span class="p">,</span> <span class="n">comp_templates</span><span class="p">)</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="n">ntlst</span><span class="o">.</span><span class="n">parts</span><span class="p">]</span>
    <span class="p">)</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">comp_inst_statements</span><span class="p">)</span>

    <span class="c1"># Net instantiation section.</span>
    <span class="n">section_desc</span> <span class="o">=</span> <span class="s2">&quot;Net interconnections between instantiated components.&quot;</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="n">section_comment</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>
    <span class="n">net_statements</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">([</span><span class="n">net_to_skidl</span><span class="p">(</span><span class="n">n</span><span class="p">)</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">ntlst</span><span class="o">.</span><span class="n">nets</span><span class="p">])</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">net_statements</span><span class="p">)</span>

    <span class="c1"># End of circuit function. Now call it to instantiate the circuit and generate the netlist.</span>
    <span class="n">ltab</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>
    <span class="n">section_desc</span> <span class="o">=</span> <span class="s2">&quot;Instantiate the circuit and generate the netlist.&quot;</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="n">section_comment</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>
    <span class="n">ltab</span> <span class="o">=</span> <span class="n">tab</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="s1">&#39;if __name__ == &quot;__main__&quot;:</span><span class="se">\n</span><span class="s1">&#39;</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="s2">&quot;</span><span class="si">{ltab}{circuit_name}</span><span class="s2">()</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>
    <span class="n">skidl</span> <span class="o">+=</span> <span class="s2">&quot;</span><span class="si">{ltab}</span><span class="s2">generate_netlist()</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">**</span><span class="nb">locals</span><span class="p">())</span>

    <span class="k">return</span> <span class="n">skidl</span></div>

</pre></div>

            <div class="clearer"></div>
          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
<search id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>
    </div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="nav-item nav-item-0"><a href="../../index.html">SKiDL 1.2.2 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="../index.html" >Module code</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">skidl.netlist_to_skidl</a></li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
    &#169; Copyright 2016-2024, Dave Vandenbout.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.3.7.
    </div>
  </body>
</html>